//
//  BaseTableViewController.h
//  Cypress
//
//  Created by 张如进 on 13-5-16.
//  Copyright (c) 2013年 Raiyi. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "BaseViewController.h"
#import "TPKeyboardAvoidingTableView.h"

@interface BaseTableViewController : BaseViewController <UITableViewDataSource,UITableViewDelegate>{
    TPKeyboardAvoidingTableView *_tableView;
}
@property (nonatomic,strong) UITableView *tableView;
@property (nonatomic) BOOL enabledLoadMore;
@property (nonatomic) BOOL hasMore;
@property (nonatomic) BOOL refresh;
@property (nonatomic) int offset;
@property (nonatomic,strong) NSMutableArray *resultArray;


- (id)initWithStyle:(UITableViewStyle)style;

- (void)showNoMoreResultView;
- (void)hiddenNoMoreResultView;
- (void)showLoadingMoreView;
- (void)hiddenLoadingMoreView;



- (NSInteger)numberOfEveryPage;
- (NSInteger)currentPage;


- (void)showNoResultViewWithTitle:(NSString*)title;

- (void)showNoResultView;

- (void)hiddenNoResultView;
-(void)setClass:(NSString*)className action:(SEL)action;
-(void)setClass:(NSString*)className action:(SEL)action object:(id)object;
-(void)loadHeader;
-(void)loadFooter;
-(void)showNoResultWithFrame:(CGRect)rect;
@end
